# Contributor: Will Sinatra <wpsinatra@gmail.com>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=toapk
pkgver=0.8
pkgrel=0
pkgdesc="PKGBUILD to APKBUILD Conversion Tool"
url="http://lambdacreate.com/dev/toAPK"
arch="all !s390x" #fennel is not packaged for s390x
license="GPL-3.0-only"
makedepends="fennel lua5.3-dev"
source="https://gitlab.com/Durrendal/toAPK/-/archive/v$pkgver/toAPK-v$pkgver.zip"
builddir="$srcdir/toAPK-v$pkgver"

check() {
	make test
}

build() {
	make compile-bin
}

package() {
	install -Dm755 "$builddir"/src/toAPK-bin "$pkgdir"/usr/bin/toAPK
}

sha512sums="016cf582b3c3a516241421d6bf5977fbcb9b57038be54f963800ae32e8c728a860bf7732e0d0d1b1e0445a03604115a0fd169f3044a83d6cc93ae19add7e79ac  toAPK-v0.8.zip"
